﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Hong.IRepository.IRepository_LeadingCockpit;
using Hong.Model.SysDomain.Model_ContractManagement;
using Hong.Model.SysDomain.Model_CustomerManagement;
using Hong.Model.SysDomain.Model_LeadingCockpitManagement;
using Hong.Model.SysDomain.Model_OperationManagement;
using Hong.Model.SysDomain.Model_SystemSettings;

namespace Hong.Business.Business_LeadingCockpit
{
    public class LeadingCockpitBusiness
    {
        #region 构造器注入
        private readonly ILeadingCockpitRepository cock;
        public LeadingCockpitBusiness(ILeadingCockpitRepository _cock)
        {
            cock = _cock;
        }
        #endregion

        #region 领导驾驶舱

        #region 合同与项目综合统计（显示、查询）
        public List<dynamic> GetStatistics(string DName = "")
        {
            var list = cock.GetStatistics(DName);
            return list;
        }
        #endregion

        #region 合同与项目综合统计导出
        public List<dynamic> GetExecel()
        {
            var list = cock.GetExecel();
            return list;
        }
        #endregion

        #region 合同收款综合统计
        public Page GetContInfo(int pageindex, int pagesize, string ContractName="", string OriginalContractPrice="", string ContractNumber = "", string RealyContractPrice = "",string ClientId="")
        {
            var list = cock.GetContInfo(pageindex, pagesize, ContractName, OriginalContractPrice,ContractNumber,RealyContractPrice, ClientId);
            return list;
        }
        #endregion

        #region 合同收款综合统计
        public ContractInfo FindInfo(string ContractId)
        {
                var list = cock.FindInfo(ContractId);
                return list;
        }
        #endregion

        #region 合同收款综合统计导出
        public List<dynamic> GetExecel1()
        {
            var list = cock.GetExecel1();
            return list;
        }
        #endregion

        #region 项目综合统计
        public List<Project> GetProject(string DName, string Conid, int? Scaleid, int? Lxid, int? Jxid, int? Ztid, int? Wcid)
        {
            var list = cock.GetProject(DName, Conid,Scaleid,Lxid,Jxid,Ztid,Wcid);
            return list;
        }
        #endregion

        #region 获取部门信息
        public List<Department> GetDept()
        {
            var list = cock.GetDept();
            return list;
        }
        #endregion

        #region 获取甲方联系人
        public List<Person> ShowReponsble()
        {
            var list = cock.ShowReponsble();
            return list;
        }
        #endregion

        #region 部门综合统计
        public List<dynamic> GetContract(string D = "", string Y = "", string O = "", string R = "", string W = "", string C = "")
        {
            var list = cock.GetContract(D,Y,O,R,W,C);
            return list;
        }
        #endregion

        #region 部门合同额同比(累计)
        public List<ContractDept> GetContract2s(string DName = "")
        {
            var list = cock.GetContract2s(DName);
            return list;
        }
        #endregion

        #region 合同额对比统计(月)
        public List<ContractDept> GetContract3s(string DName = "")
        {
            var list = cock.GetContract3s(DName);
            return list;
        }
        #endregion

        #region 合同收费详情
        public List<ContractInfo> GetContract4s(string DName = "")
        {
            var list = cock.GetContract4s(DName);
            return list;
        }
        #endregion

        #region 获取项目信息
        public List<Project> GetProject2()
        {
            var list = cock.GetProject2();
            return list;
        }
        #endregion

        public List<ProjectDuibi> GetProject4(string DName = "")
        {
            var list = cock.GetProject4(DName);
            return list;
        }

            #endregion
        }
}
